package work3.work4;

public class Leader implements CallBack{

    CallBack callBack=this::callBack;

    void callWorkerToWork(Worker worker,String work, CallBack callBack){
        worker.doWork(work,callBack);
    }

    @Override
    public void callBack(String r) {
        System.out.println(r);
    }
}
